package team.kirohuji.domain.attendance;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import team.kirohuji.domain.user.User;
@Entity
@Table(name = "affiche")
public class Affiche {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name="affiche_id")
	private Integer afficheId;
    
	private String header;
	
	private String images;

	private Integer type;
    @Column(name="sub_header")
	private String subHeader;

	private String content;
    @Column(name="create_date")
	private Date createDate;
    @Column(name="end_date")
	private Integer endDate;
	
    @OneToOne(cascade = CascadeType.ALL)
    @JoinColumn(name="user_id")
	private User userId;
    @Column(name="target")
	private String target;

	public Integer getAfficheId() {
		return afficheId;
	}

	public void setAfficheId(Integer afficheId) {
		this.afficheId = afficheId;
	}

	public String getHeader() {
		return header;
	}

	public void setHeader(String header) {
		this.header = header;
	}

	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getSubHeader() {
		return subHeader;
	}

	public void setSubHeader(String subHeader) {
		this.subHeader = subHeader;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getEndDate() {
		return endDate;
	}

	public void setEndDate(Integer endDate) {
		this.endDate = endDate;
	}

	public User getUserId() {
		return userId;
	}

	public void setUserId(User userId) {
		this.userId = userId;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}


}